<?php
class Other{
    public function __toString()
    {
        return '哥，你在直接输出一个对象';
    }
}
$object = new Other();
echo $object;